import pygame
import inputhandler
from object import *
from config import *


pygame.init()

window = pygame.display.set_mode((screenx,screeny))

screen = pygame.display.get_surface() 

purple = pygame.Color("purple")
black = pygame.Color("black")

v1 = vert(100,100,00)
v2 = vert(-100,100,00)
v3 = vert(-100,-100,00)
v4 = vert(100,-100,00)

fac1 = face(v1,v2,v4)
fac2 = face(v3,v2,v4)
#fac = face(v1,v2,v3)

obj = object((fac1,fac2))

obj.setPos([0,00,200])
obj.setScale([1,1.2,1])
#fac.draw(purple,screen)

i = 0.0

quit = 0
while not quit:
    pygame.Surface.fill(screen,black)

    z = inputhandler.scroll
    #print z
    obj.setScale((z+1,1,1))
    i +=1
    obj.draw(purple,screen)
    quit = inputhandler.inputhandler(pygame.event.get())
    pygame.display.flip()